package com.example.config;

import com.example.model.Result;

/**
* Created with IntelliJ IDEA.
* Description:定义项目异常
* User: bjc
* Date: 2025-08-03
* Time: 20:45
*/
public class BlogException extends RuntimeException{

    private String errMsg;

   public BlogException(String errMsg)
   {
       super(errMsg);//为了把错误信息传到父类，这样就可以在统一异常处理时获取错误信息
       this.errMsg = errMsg;
   }
}
